function validationprofile()
{
var x=document.forms["Profiles"]["fName"].value
var y=document.forms["Profiles"]["lName"].value
var z=document.forms["Profiles"]["gender"].value
var sz=document.forms["Profiles"]["SIN"].value
var u=document.forms["Profiles"]["birthdate"].value
var v=document.forms["Profiles"]["address"].value
var w=document.forms["Profiles"]["city"].value
var prov=document.forms["Profiles"]["mprovince"].value
var post=document.forms["Profiles"]["postcode"].value
var di=document.forms["Profiles"]["datein"].value
var ph=document.forms["Profiles"]["primaryphone"].value
var wh=document.forms["Profiles"]["workphone"].value
var ch=document.forms["Profiles"]["cellphone"].value
var dr=document.forms["Profiles"]["driver"].value
var el=document.forms["Profiles"]["email"].value
var cel=document.forms["Profiles"]["cemail"].value
var pw=document.forms["Profiles"]["pwd"].value
var cpw=document.forms["Profiles"]["cpwd"].value
var r1n=document.forms["Profiles"]["r1name"].value
var r2n=document.forms["Profiles"]["r2name"].value
var r1p=document.forms["Profiles"]["r1phone"].value
var r2p=document.forms["Profiles"]["r2phone"].value
var r1r=document.forms["Profiles"]["r1relation"].value
var ad=document.forms["Profiles"]["advertisement"].value

if(x==null||x=="")
{
alert("First Name must be filled out");
return false;
}
else
if(y==null||y=="")
{
alert("Last Name must be filled out");
return false;
}
else
if(z==null||z=="")
{
alert("Please tell us your gender");
return false;
}

else
if(sz==null||sz=="")
{
alert("SIN must be filled out");
return false;
}
else

if(u==null||u=="")
{
alert("Birthday is a mandatory item");
return false;
}

else
if(v==null||v=="")
{
alert("Address must be filled out");
return false;
}

else
if(w==null||w=="")
{
alert("Please list your living city");
return false;
}

else
if(prov==null||prov=="")
{
alert("Please choose your province");
return false;
}

else
if(post==null||post=="")
{
alert("Please verify your post code");
return false;
}
else

if(di==null||di=="")
{
alert("Please tell us when you moved in to this place");
return false;
}

else

if(ph==null||ph=="")
{
alert("Your primary contact phone is very important to us, please list one here");
return false;
}


else
if(wh==null||wh=="")
{
rr=confirm("You didn't provide your working phone number, please press cancel to provide one")

	if (rr==true)
	  {
	  alert("You don't want to provide your working phone number, OK!")
	  }
	else
	  {
	  return false;
	  }

}

else
if(ch==null||ch=="")
{

	cr=confirm("Please provide your cell phone and let us reach you easily. please press cancel to provide one")

	if (rr==true)
	  {
	  alert("You don't want to provide your cell phone number, OK!")
	  }
	else
	  {
	  return false;
	  }

}

else
if(dr==null||dr=="")
{

  {
  alert("You forgot to fill out your driver license!")
  return false;
  }


}
else
if(el==null||el=="")
{
  {
  alert("Email address will be your login ID when you come back, please fill out your email address")
  return false;
  }

}
else
if(cel==null||cel=="")
{
  {
  alert("Please confirm your email address again, thanks!")
  return false;
  }

}
else
if(el!=cel)
{
  {
  alert("Your email address is not input correctly, Please re-enter your email address in both, thanks!")
  return false;
  }

}
else
if(pw==null||pw=="")
{
  {
  alert("When you come back, this password will be your login password. please fill out your password")
  return false;
  }

}
else
if(cpw==null||cpw=="")
{
  {
  alert("Please confirm your password again, thanks!")
  return false;
  }

}
else
if(pw!=cpw)
{
  {
  alert("Your password is not input correctly, Please re-enter your password in both, thanks!")
  return false;
  }

}
else
if(r1n==null||r1n=="")
{
  {
  alert("Please fill out your reference name, thanks!")
  return false;
  }

}
else
if(r2n==null||r2n=="")
{
  r2name=confirm("Please provide your second refernce name here in case your first one is not available. please press cancel to provide one")

	if (r2name==true)
	  {
	  alert("You don't want to provide your second reference here, no problem!")
	  }
	else
	  {
	  return false;
	  }

}
else
if(r1p==null||r1p=="")
{
  {
  alert("Please fill out your first reference phone number here, thanks!")
  return false;
  }

}
else
if(r2p==null||r2p=="")
{
  r2phone=confirm("This is optional. Please press ok to continue or press cancel to provide")

	if (r2phone==true)
	  {
	  alert("You don't want to provide the phone, ok!")
	  }
	else
	  {
	  return false;
	  }

}
else
if(r1r==null||r1r=="")
{
  {
  alert("Please tell us your relationship with your first provided reference , thanks!")
  return false;
  }

}
else
if(ad==null||ad=="")
{
  {
  alert("Please tell us where did you know www.cash2u.ca. Many thanks!")
  return false;
  }

}



}